home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programmer Power Tools
/
Programmer Power Tools.iso
/
clipper
/
nannws31.arc
/
PRTSC.PRG
< prev
Wrap
Text File
|
1988-08-09
|
852b
|
42 lines
* Program: PrtSc.prg
* Author: Phil User and Chris Sennitt
* Nantucket (UK)
* Version: Clipper Summer 87
* Copyright (c) 1988 Nantucket Corp.
*
* .... Code
SET PRINTER TO Temp.txt
PRTSC()
* .... More Code
Return
FUNCTION PrtSc
*
* Usage: PrtSc()
*
PRIVATE M__Scr, OldColor, Char
SAVE SCREEN TO M__Scr && Put Screen into mvar.
OldColor = SETCOLOR('n*/w,w/n') && Save color and set new.
@ 0,10 SAY ' Printing ' && Display message.
SET PRINT On
SET CONS Off
FOR Char = 1 TO 4000 STEP 2 && Screen (80 * 25 * 2)
?? SUBSTR(M__Scr,Char,1) && Print Character
IF (Char/160) = Int(Char/160) && End of a line?
?? CHR(13) + CHR(10) && <CR> <LF>
ENDIF
NEXT
SET PRINT Off
SET CONS On
SETCOLOR(OldColor)
RESTORE SCREEN FROM M__Scr
RETURN (.T.)